import { dialog } from '@gis/lib/components/antd-dialog';

export function openMonitorDetailsDialog(data) {
  dialog({
    content: () => import('./monitor-details.vue'),
    contentProps: {
      detail: data,
    },
    dialogProps: {
      title: '详情',
      width: 'small',
      footer: null,
      centered: true,
    },
  });
}

// 监控 - 列表
export function openMonitorListDialog({ type, name, area_code }) {
  dialog({
    content: () => import('./monitor-list.vue'),
    contentProps: { type, area_code },
    dialogProps: {
      title: (name || '') + '设备列表',
      footer: null,
      width: 'large',
      height: 'fixed',
    },
  });
}
